package com.DHH.Dto;

import com.DHH.Util.CamelToLine;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/15.
 */
public class QueryInfo {
    private String type;
    private String searchKey="";
    private Integer pageSize=10;
    private Integer currentPage=1;
    private String filterAttrName;//过滤的属性名称
    private String filterStartValue;//过滤的开始值
    private String filterEndValue;//过滤的结束值
    private String filterType;//过滤的类型
    private String order;
    private String sort;
    private String screen;
    private Map<String,String> map=new HashMap<String, String>();//筛选相关参数

    public QueryInfo() {

    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSearchKey() {
        return searchKey;
    }

    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getFilterAttrName() {
        return filterAttrName;
    }

    public void setFilterAttrName(String filterAttrName) {
        this.filterAttrName = filterAttrName;
    }

    public String getFilterStartValue() {
        return filterStartValue;
    }

    public void setFilterStartValue(String filterStartValue) {
        this.filterStartValue = filterStartValue;
    }

    public String getFilterEndValue() {
        return filterEndValue;
    }

    public void setFilterEndValue(String filterEndValue) {
        this.filterEndValue = filterEndValue;
    }

    public String getFilterType() {
        return filterType;
    }

    public void setFilterType(String filterType) {
        this.filterType = filterType;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return "QueryInfo{" +
                "type=" + type +
                ", searchKey='" + searchKey + '\'' +
                ", pageSize=" + pageSize +
                ", currentPage=" + currentPage +
                ", filterAttrName='" + filterAttrName + '\'' +
                ", filterStartValue='" + filterStartValue + '\'' +
                ", filterEndValue='" + filterEndValue + '\'' +
                ", filterType='" + filterType + '\'' +
                ", order='" + order + '\'' +
                ", sort='" + sort + '\'' +
                ", map=" + map +
                '}';
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = CamelToLine.camelToUnderline(sort);
    }
}
